package com.yanqu.road.entity.log.hongxian;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_hong_xian_reward", autoSave = true, dataUpload = true, eventName = "red_prop", desc = "自选获得奖励")
public class LogHongXianReward extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "活动id", dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "级别id", dataAttribute = "red_id")
    private int memId;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "red_propget")
    private String reward;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogHongXianReward(int activityId, long userId, int memId, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.memId = memId;
        this.reward = reward;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getMemId() {
        return memId;
    }

    public void setMemId(int memId) {
        this.memId = memId;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
